package routers

import (
	"github.com/astaxie/beego"
	"smartcap-api/equappcontrollers"
	"smartcap-api/webappcontrollers"
)

func init() {
    beego.Router("/", &equappcontrollers.MainController{})
	//beego.Router("/*", &equappcontrollers.MainController{}, "options:Options")
	beego.Router("/equstartup", &equappcontrollers.MainController{}, "post:Equstartup")
	beego.Router("/equturnoff", &equappcontrollers.MainController{}, "post:Equturnoff")
	beego.Router("/statusinfo", &equappcontrollers.MainController{}, "post:Statusinfo")
	beego.Router("/heartandtime", &equappcontrollers.MainController{}, "post:Heartandtime")
	beego.Router("/setvedio", &webappcontrollers.MainController{}, "post:Setvedio")
	beego.Router("/updata", &equappcontrollers.MainController{}, "post:Updata")
	beego.Router("/upwardwarning", &equappcontrollers.AlarmController{}, "post:Upwardwarning")
	beego.Router("/canceldownwardwarning", &equappcontrollers.AlarmController{}, "post:Canceldownwardwarning")
	beego.Router("/fileupload", &equappcontrollers.FileUploadController{}, "post:Fileupload")
	beego.Router("/changenetwork", &webappcontrollers.MainController{}, "post:Changenetwork")
	beego.Router("/adddeviceinfo", &webappcontrollers.WebappControllers{}, "post:AddDeviceInfo")
	beego.Router("/queryalldeviceinfo", &webappcontrollers.WebappControllers{}, "post:QueryAllDeviceInfo")
	beego.Router("/file/queryallfileinfo", &webappcontrollers.FileDownloadController{}, "get:QueryAllFileInfo")
	beego.Router("/file/deletefile", &webappcontrollers.FileDownloadController{}, "post:DeleteFilebyfilename")
	beego.Router("/file/queryfile", &webappcontrollers.FileDownloadController{}, "get:Queryfile")
	beego.Router("/file/filedownload", &webappcontrollers.FileDownloadController{}, "get:FileDownload")
}


